<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Orderproduct;
class Order extends Model
{
    protected $table = 'order';
    protected $fillable = [
        'id', 'userid','preferid', 'order_sn','price','yhprice','psprice','city','area','street','address','type','state','bz','created_at', 'updated_at','mobile','username','zprice'
    ];
    public function orderPro()
    {
        return $this->hasMany(Orderproduct::class, 'orderid', 'id');
    }
}
